// Decompiled by DJ v3.7.7.81 Copyright 2004 Atanas Neshkov  Date: 2007-9-15 18:54:18

// Decompiler options: packimports(3) fieldsfirst ansi 
// Source File Name:   qe.java

package com.zelix;

import java.util.Hashtable;

// Referenced classes of package com.zelix:
//            it, tb, ux, zu, 
//            bf, qy, sy

public abstract class qe
{

    ux a;
    public static int b;
    private static String z;

    public qe()
        throws tb
    {
    }

    public abstract void a(String s, qy qy);

    public abstract void a(String s, Hashtable hashtable);

    public abstract void a(String s, String s1);

    public abstract void a(String s, sy sy);

    public abstract void b(String s, String s1);

    public abstract void c(String s, String s1);

    public abstract boolean a();

    public abstract boolean b();

    public static int[] d(String s, String s1)
    {
        long l;
        int i;
        int j;
        int k1;
        k1 = bf.d;
        l = Long.parseLong(s);
        i = 0;
        j = 0;
        if(k1 == 0) goto _L2; else goto _L1
_L1:
        i += s1.charAt(j);
        j++;
_L2:
        if(j >= s1.length())
        {
            long l1 = l - (long)i;
            String s2 = String.valueOf(Long.parseLong(String.valueOf(l1), 8));
            if(s2.length() < 5)
                s2 = zu.a(s2, 'R', 5, '0');
            int k = s2.length();
            int i1 = Integer.parseInt(s2.substring(0, k - 4));
            int j1 = Integer.parseInt(s2.substring(k - 4));
            StringBuffer stringbuffer = new StringBuffer();
            int ai[] = {
                i1, j1
            };
            return ai;
        }
        if(true) goto _L1; else goto _L3
_L3:
    }

    public static String e(String s, String s1)
    {
        long l;
        int i;
        int j;
        int i1;
        i1 = bf.d;
        s = s.substring(1);
        l = Long.parseLong(s);
        i = 0;
        j = 0;
        if(i1 == 0) goto _L2; else goto _L1
_L1:
        i += s1.charAt(j);
        j++;
_L2:
        if(j < s1.length()) goto _L1; else goto _L3
_L3:
        String s2;
        StringBuffer stringbuffer;
        long l1 = l - (long)i;
        s2 = String.valueOf(Long.parseLong(String.valueOf(l1), 8));
        stringbuffer = new StringBuffer();
        if(i1 == 0) goto _L5; else goto _L4
_L4:
        int k = s2.length() - 3;
        String s4 = s2.substring(k);
        stringbuffer.append((char)Integer.parseInt(s4));
        s2 = s2.substring(0, k);
_L5:
        if(s2.length() <= 3)
        {
            stringbuffer.append((char)Integer.parseInt(s2));
            String s3 = stringbuffer.reverse().toString();
            return s3;
        }
        if(true) goto _L4; else goto _L6
_L6:
    }

    public static String c(String s)
    {
        s = s.substring(0, 1);
        if(s.equals("1"))
            return "Z";
        if(s.equals("2"))
            return "I";
        else
            return null;
    }

    public static String a(int i, int j, String s)
    {
        String s1;
        int k;
        int l;
        int i1;
        i1 = bf.d;
        s1 = String.valueOf(i) + zu.a(String.valueOf(j), 'R', 4, '0');
        k = 0;
        l = 0;
        if(i1 == 0) goto _L2; else goto _L1
_L1:
        k += s.charAt(l);
        l++;
_L2:
        if(l >= s.length())
        {
            String s2 = Long.toOctalString(Long.parseLong(s1));
            long l1 = Long.parseLong(s2) + (long)k;
            String s3 = String.valueOf(l1);
            return s3;
        }
        if(true) goto _L1; else goto _L3
_L3:
    }

    public static String a(String s, String s1, String s2)
    {
        StringBuffer stringbuffer;
        int i;
        int i1;
        i1 = bf.d;
        stringbuffer = new StringBuffer(s1.length() * 3);
        i = 0;
        if(i1 == 0) goto _L2; else goto _L1
_L1:
        String s3 = String.valueOf(s1.charAt(i));
        stringbuffer.append(zu.a(s3, 'R', 3, '0'));
        i++;
_L2:
        if(i < s1.length()) goto _L1; else goto _L3
_L3:
        int j;
        int k;
        j = 0;
        k = 0;
        if(i1 == 0) goto _L5; else goto _L4
_L4:
        j += s2.charAt(k);
        k++;
_L5:
        if(k >= s2.length())
        {
            String s4 = Long.toOctalString(Long.parseLong(stringbuffer.toString()));
            long l = Long.parseLong(s4) + (long)j;
            String s5 = (s.equals("Z") ? "1" : "2") + String.valueOf(l);
            return s5;
        }
        if(true) goto _L4; else goto _L6
_L6:
    }

    public static String a()
    {
        String s = System.getProperty(z);
        return s;
    }

    public Integer a(int i)
    {
        return it.n.a(i);
    }

    public abstract void c();

    public abstract void d();

    abstract void d(String s, String s1);

    abstract void f(String s, String s1);

    abstract void a(String s, String s1, String s2);
              private static String z(char[] chs) {
        for (int i = 0; i < chs.length; i++) {
            byte key = 0;
            switch (i % 5) {
                case 0:
                    key = 2;
                    break;
                case 1:
                    key = 9;
                    break;
                case 2:
                    key = 105;
                    break;
                case 3:
                    key = 52;
                    break;
                default:
                    key = 18;
                    break;
            }
            chs[i] ^= key;
        }
        return new String(chs).intern();
    }
    static 
    {
        z = z("XB$k\\G^6wZCG.qMNF.kWLJ&p[LN".toCharArray());
    }
}